package com.ydy.data.mapper;


import com.ydy.common.model.Role;
import com.ydy.common.vo.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleInfoMapper {

    List<Role> queryRoleInfo(@Param("model") Role role,
                             @Param("page") PageInfo pageInfo);

    void insertRoleInfo(Role role);

    void updateRoleInfo(Role role);

    void deleteRoleInfo(@Param("roleCode") String roleCode);

    void deleteRoleMenuInfo(@Param("roleCode")String roleCode,
                            @Param("menuCode")String menuCode);

    void deleteRolePermissionInfo(@Param("roleCode")String roleCode,
                                  @Param("permissionCode")String permissionCode);
}
